Optimal. Leaf size=239 \[ -\frac {105 i a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{256 \sqrt {2} d}+\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {105 i a^2}{256 d \sqrt {a+i a \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {3568, 44, 53,
65, 212} \begin {gather*} -\frac {105 i a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{256 \sqrt {2} d}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}+\frac {105 i a^2}{256 d \sqrt {a+i a \tan (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 44
Rule 53
Rule 65
Rule 212
Rule 3568
Rubi steps
\begin {align*} \int \cos ^6(c+d x) (a+i a \tan (c+d x))^{3/2} \, dx &=-\frac {\left (i a^7\right ) \text {Subst}\left (\int \frac {1}{(a-x)^4 (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{d}\\ &=-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {\left (3 i a^6\right ) \text {Subst}\left (\int \frac {1}{(a-x)^3 (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{4 d}\\ &=-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {\left (21 i a^5\right ) \text {Subst}\left (\int \frac {1}{(a-x)^2 (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{32 d}\\ &=-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}-\frac {\left (105 i a^4\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{5/2}} \, dx,x,i a \tan (c+d x)\right )}{128 d}\\ &=\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}-\frac {\left (105 i a^3\right ) \text {Subst}\left (\int \frac {1}{(a-x) (a+x)^{3/2}} \, dx,x,i a \tan (c+d x)\right )}{256 d}\\ &=\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {105 i a^2}{256 d \sqrt {a+i a \tan (c+d x)}}-\frac {\left (105 i a^2\right ) \text {Subst}\left (\int \frac {1}{(a-x) \sqrt {a+x}} \, dx,x,i a \tan (c+d x)\right )}{512 d}\\ &=\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {105 i a^2}{256 d \sqrt {a+i a \tan (c+d x)}}-\frac {\left (105 i a^2\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{256 d}\\ &=-\frac {105 i a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{256 \sqrt {2} d}+\frac {35 i a^3}{128 d (a+i a \tan (c+d x))^{3/2}}-\frac {i a^6}{6 d (a-i a \tan (c+d x))^3 (a+i a \tan (c+d x))^{3/2}}-\frac {3 i a^5}{16 d (a-i a \tan (c+d x))^2 (a+i a \tan (c+d x))^{3/2}}-\frac {21 i a^4}{64 d (a-i a \tan (c+d x)) (a+i a \tan (c+d x))^{3/2}}+\frac {105 i a^2}{256 d \sqrt {a+i a \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.18, size = 169, normalized size = 0.71 \begin {gather*} \frac {a e^{-4 i (c+d x)} \left (\sqrt {1+e^{2 i (c+d x)}} \left (-16-208 e^{2 i (c+d x)}+165 e^{4 i (c+d x)}+50 e^{6 i (c+d x)}+8 e^{8 i (c+d x)}\right )+315 e^{3 i (c+d x)} \sinh ^{-1}\left (e^{i (c+d x)}\right )\right ) \cos ^2(c+d x) (-i+\tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{768 d \sqrt {1+e^{2 i (c+d x)}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1085 vs. \(2 (193 ) = 386\).
time = 1.05, size = 1086, normalized size = 4.54
method | result | size |
default | \(\text {Expression too large to display}\) | \(1086\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 212, normalized size = 0.89 \begin {gather*} \frac {i \, {\left (315 \, \sqrt {2} a^{\frac {5}{2}} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right ) + \frac {4 \, {\left (315 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{4} a^{3} - 1680 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a^{4} + 2772 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a^{5} - 1152 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{6} - 256 \, a^{7}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {9}{2}} - 6 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a + 12 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{2} - 8 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{3}}\right )}}{3072 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 311, normalized size = 1.30 \begin {gather*} -\frac {{\left (315 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{3}}{d^{2}}} d e^{\left (3 i \, d x + 3 i \, c\right )} \log \left (-\frac {4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (i \, d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, d\right )} \sqrt {-\frac {a^{3}}{d^{2}}} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} - a^{2} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{a}\right ) - 315 \, \sqrt {\frac {1}{2}} \sqrt {-\frac {a^{3}}{d^{2}}} d e^{\left (3 i \, d x + 3 i \, c\right )} \log \left (-\frac {4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (-i \, d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, d\right )} \sqrt {-\frac {a^{3}}{d^{2}}} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} - a^{2} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}}{a}\right ) - \sqrt {2} {\left (-8 i \, a e^{\left (10 i \, d x + 10 i \, c\right )} - 58 i \, a e^{\left (8 i \, d x + 8 i \, c\right )} - 215 i \, a e^{\left (6 i \, d x + 6 i \, c\right )} + 43 i \, a e^{\left (4 i \, d x + 4 i \, c\right )} + 224 i \, a e^{\left (2 i \, d x + 2 i \, c\right )} + 16 i \, a\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}\right )} e^{\left (-3 i \, d x - 3 i \, c\right )}}{1536 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\cos \left (c+d\,x\right )}^6\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________